package com.my.design.observer;

import java.util.ArrayList;
import java.util.List;

public abstract class Subject {


    public List<Observer> observerList = new ArrayList<Observer>();



    public void addObserver(Observer observer) {
        observerList.add(observer);
    }


    public void remove(Observer observer) {
        observerList.remove(observer);
    }


    public abstract void notifyRes();
}
